<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script type="text/javascript">
    class Person{
      constructor(name,age) {
        this.name = name
        this.age = age
      }
      study(){
        console.log(this)
      }
    }

    const p1 = new Person('lemon',22)
    p1.study()
    const x = p1.study
    x()
  </script>
</body>
</html>
